Optimal. Leaf size=48 \[ \frac {b x^4}{12 c}+\frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )+\frac {b \log \left (1-c^2 x^4\right )}{12 c^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {6037, 272, 45}
\begin {gather*} \frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )+\frac {b \log \left (1-c^2 x^4\right )}{12 c^3}+\frac {b x^4}{12 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 272
Rule 6037
Rubi steps
\begin {align*} \int x^5 \left (a+b \tanh ^{-1}\left (c x^2\right )\right ) \, dx &=\frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )-\frac {1}{3} (b c) \int \frac {x^7}{1-c^2 x^4} \, dx\\ &=\frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )-\frac {1}{12} (b c) \text {Subst}\left (\int \frac {x}{1-c^2 x} \, dx,x,x^4\right )\\ &=\frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )-\frac {1}{12} (b c) \text {Subst}\left (\int \left (-\frac {1}{c^2}-\frac {1}{c^2 \left (-1+c^2 x\right )}\right ) \, dx,x,x^4\right )\\ &=\frac {b x^4}{12 c}+\frac {1}{6} x^6 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )+\frac {b \log \left (1-c^2 x^4\right )}{12 c^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 53, normalized size = 1.10 \begin {gather*} \frac {b x^4}{12 c}+\frac {a x^6}{6}+\frac {1}{6} b x^6 \tanh ^{-1}\left (c x^2\right )+\frac {b \log \left (1-c^2 x^4\right )}{12 c^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 45, normalized size = 0.94
method | result | size |
default | \(\frac {x^{6} a}{6}+\frac {b \,x^{6} \arctanh \left (c \,x^{2}\right )}{6}+\frac {b \,x^{4}}{12 c}+\frac {b \ln \left (c^{2} x^{4}-1\right )}{12 c^{3}}\) | \(45\) |
risch | \(\frac {x^{6} b \ln \left (c \,x^{2}+1\right )}{12}-\frac {x^{6} b \ln \left (-c \,x^{2}+1\right )}{12}+\frac {x^{6} a}{6}+\frac {b \,x^{4}}{12 c}+\frac {b \ln \left (c^{2} x^{4}-1\right )}{12 c^{3}}\) | \(62\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.25, size = 46, normalized size = 0.96 \begin {gather*} \frac {1}{6} \, a x^{6} + \frac {1}{12} \, {\left (2 \, x^{6} \operatorname {artanh}\left (c x^{2}\right ) + {\left (\frac {x^{4}}{c^{2}} + \frac {\log \left (c^{2} x^{4} - 1\right )}{c^{4}}\right )} c\right )} b \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 62, normalized size = 1.29 \begin {gather*} \frac {b c^{3} x^{6} \log \left (-\frac {c x^{2} + 1}{c x^{2} - 1}\right ) + 2 \, a c^{3} x^{6} + b c^{2} x^{4} + b \log \left (c^{2} x^{4} - 1\right )}{12 \, c^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 85 vs.
\(2 (39) = 78\).
time = 5.12, size = 85, normalized size = 1.77 \begin {gather*} \begin {cases} \frac {a x^{6}}{6} + \frac {b x^{6} \operatorname {atanh}{\left (c x^{2} \right )}}{6} + \frac {b x^{4}}{12 c} + \frac {b \log {\left (x - \sqrt {- \frac {1}{c}} \right )}}{6 c^{3}} + \frac {b \log {\left (x + \sqrt {- \frac {1}{c}} \right )}}{6 c^{3}} - \frac {b \operatorname {atanh}{\left (c x^{2} \right )}}{6 c^{3}} & \text {for}\: c \neq 0 \\\frac {a x^{6}}{6} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 57, normalized size = 1.19 \begin {gather*} \frac {1}{12} \, b x^{6} \log \left (-\frac {c x^{2} + 1}{c x^{2} - 1}\right ) + \frac {1}{6} \, a x^{6} + \frac {b x^{4}}{12 \, c} + \frac {b \log \left (c^{2} x^{4} - 1\right )}{12 \, c^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.79, size = 61, normalized size = 1.27 \begin {gather*} \frac {a\,x^6}{6}+\frac {b\,\ln \left (c^2\,x^4-1\right )}{12\,c^3}+\frac {b\,x^4}{12\,c}+\frac {b\,x^6\,\ln \left (c\,x^2+1\right )}{12}-\frac {b\,x^6\,\ln \left (1-c\,x^2\right )}{12} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________